/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.soa.service.busi.pl;

import com.lianzt.commondata.AbstractCommonData;
import com.soa.service.BaseService;
import java.util.List;
import org.springframework.stereotype.Service;

/**
 * 获取用户负责业务 S11012
 *
 * @author zuotai
 */
@Service
public class GetUserBusiPl extends BaseService {

    private final String[] KEY = {"username", "用户名"};

    @Override
    public String[] keys() {
        return KEY;
    }

    @Override
    public void execute(AbstractCommonData in, AbstractCommonData inHead, AbstractCommonData out, AbstractCommonData outHead) {
        List<AbstractCommonData> allBusi = queryList("get_all_busi_pl");
        out.putArrayValue("busis", GetRoleBusiPl.margeBusi(allBusi));       //整理树结构
        out.putArrayValue("user_busi", queryList("get_user_busi_pl", in));
    }
}
